home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_8.lha / 6_8 / 6_8a_tst.c next >
Text File  |  1993-08-08  |  801b  |  32 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <stream.h>
  6.  
  7. include "6_8a.c"
  8.  
  9. ain() {
  10.    INT I1 = 9;                int i1 = 9;
  11.    INT I2;                int i2 = 0;
  12.    INT I3 = I2;            int i3 = i2;
  13.    int X = 1, Y = 2;            int x = 1, y = 2;
  14.  
  15.    X = I1;                x = i1;
  16.    I2 = Y;                i2 = y;
  17.    I2 = I1;                i2 = i1;
  18.    I2 = 9;                i2 = 9;
  19.    I2 = I1 + 99;            i2 = i1 + 99;
  20.    I2 = I1 + I1;            i2 = i1 + i1;
  21.    I2 *= 5;                i2 *= 5;
  22.    I2 += 9;                i2 += 9;
  23.    I2 += I2;                i2 += i2;
  24.    I2++;                i2++;
  25.    ++I2;                ++i2;
  26.    cout << "I1=" << int(I1) << "\n";
  27.    cout << "i1=" << int(i1) << "\n";
  28.    cout << "I2=" << int(I2) << "\n";
  29.    cout << "i2=" << int(i2) << "\n";
  30.    return 0;    // DELETE
  31.  
  32.